KeyboardControls

open class KeyboardControls(wwd: WorldWindow)

Keyboard navigation for the globe. Multiple navigation keys may be held at the same time — pan in two directions, zoom and tilt can all be active simultaneously, and each key has its own acceleration ramp. The canvas is made focusable in the constructor and gains focus on a click so the controls work as soon as the user clicks the globe.

Constructors

Link copied to clipboard
constructor(wwd: WorldWindow)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Per-tick growth of the speed multiplier (50 ms tick × 0.05 ≈ 5x in 4 s).

Link copied to clipboard
Link copied to clipboard

Upper bound on the per-key speed multiplier.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard